import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MemCollectComponent} from './mem-collect.component';

const routes: Routes = [
    {path: '', component: MemCollectComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mem-collect/add-mem-collect.module#AddMemCollectModule'},
            {path: 'list', loadChildren: './list-mem-collect/list-mem-collect.module#ListMemCollectModule'},
            {path: 'modify', loadChildren: './modify-mem-collect/modify-mem-collect.module#ModifyMemCollectModule'},
            {path: 'report', loadChildren: './report-mem-collect/report-mem-collect.module#ReportMemCollectModule'},
            {path: 'mem-collect', loadChildren: './report-mem-collect/report-mem-collect.module#ReportMemCollectModule'},

        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MemCollectRoutingModule {
}
